package com.shao.im.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shao.im.entity.PostImg;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 动态图片表(PostImg)表数据库访问层
 *
 * @author makejava
 * @since 2023-08-04 22:23:24
 */
public interface PostImgDao extends BaseMapper<PostImg> {

    @Select("""
        select img from post_img where pid = #{pid}
            """)
    List<PostImg> queryImages(Integer pid);
}

